//
//  SEGTopicDetailViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/6.
//

#import <Foundation/Foundation.h>
#import "SEGCommunitySocialManager.h"
#import "SEGSharedTopicDetailInfoModel.h"
#import "SEGFindQuizListByQuizTypeModel.h"
#import "SEGNewTopicManager.h"
#import "SEGSharedNewManager.h"
#import "ReactiveObjC.h"

NS_ASSUME_NONNULL_BEGIN

@interface SEGTopicDetailViewModel : NSObject
@property (nonatomic, copy) NSString *objId;

@property (nonatomic, assign) NSInteger pageNum;
@property (nonatomic, strong) SEGSharedTopicDetailInfoModel *topicModel;
@property (nonatomic, strong) NSMutableArray<SEGFindQuizListByQuizTypeModel *> *dataList;

@property (nonatomic, strong) SEGNewTopicManager *topicManager;
@property (nonatomic, strong) SEGCommunitySocialManager *socialManager;
@property (nonatomic, strong) SEGSharedNewManager *sharedNewManager;
@property (nonatomic, assign) BOOL imageType;//YES表示图文话题，NO表示纯文字话题
@property (nonatomic, assign) BOOL bottomLoading;
@property (nonatomic, assign) BOOL noMoreData;//YES表示所有数据已加载完毕，不再调加载更多的接口

/// 统计腾讯广告渲染成功的次数
@property (nonatomic, assign) NSInteger tencentAdRenderCount;
/// 腾讯广告渲染完成
@property (nonatomic, assign) BOOL tencentAdRenderFinish;
/// 腾讯广告渲染完成的个数
@property (nonatomic, assign) NSInteger tencentAdRenderFinishCount;

@property (nonatomic, strong) SEGFindQuizListByQuizTypeModel *reportModel;
@property (nonatomic, assign) NSInteger reportIndex;


- (RACSignal *)requestTopicDetails;

- (RACSignal *)loadDataWithFresh:(BOOL)fresh;

- (RACSignal *)didClickLikeWithModel:(SEGFindQuizListByQuizTypeModel *)model;


/// 删除自己的记录
- (RACSignal *)requestDeleteJoinHistory;

- (NSDictionary *)getShareParamsWithImage:(UIImage *)image;

- (RACSignal *)seg_requestPublishWithContent:(NSString *)content;

@end

NS_ASSUME_NONNULL_END
